﻿@model Blog.Models.AboutModel

@{
    ViewBag.Title = "AboutEdit";
}

<div class="container">
    <h2>@ViewBag.Message</h2>
    <h3>Veuillez modifier le texte : </h3><hr /><br />

    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)
        <fieldset>
            <div class="editor-field">
                @Html.TextAreaFor(model => model.Text)
                @Html.ValidationMessageFor(model => model.Text)
            </div>

            <p>
                <button type="submit" class="btn btn-success btn-medium" value="Enregistrer"><i class="icon-ok icon-white"></i> Enregistrer</button>
            </p>
        </fieldset>
    }

    <a href="/" class="btn btn-warning btn-medium"><i class="icon-chevron-left icon-white"></i> Retour à l'acceuil</a>
</div>
